<script>
import store from './store'
export default {
  data () {
    return {}
  },
  created () {
    this.getSystemInfo()
    this.getCapsulePosition()
  },
  methods: {
    /**
     * 获取设备信息
     */
    getSystemInfo () {
      mpvue.getSystemInfo({
        success: (res) => {
          store.commit('systemInfo', res)
        }
      })
    },
    /**
     * 获取胶囊位置
     */
    getCapsulePosition () {
      store.commit('capsule', mpvue.getMenuButtonBoundingClientRect())
    }
  }
}
</script>

<style>
  @import "../static/fonts/iconfont.less";
  page{
    background: #f2f2f2;
    height: 100%;
  }
</style>
